<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="viewport" content="height=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <title></title>
    <link rel="stylesheet" href="../css/common.css"/>
    <link rel="stylesheet" href="../css/register.css"/>
    <link href="../css/css.css" rel="stylesheet" type="text/css">
    <script src="../js/jquery-1.7.1.min.js"></script>
    <script src='../js/layer/2.1/layer.js'></script>
    <style>
        .message{
            background: none;
            padding-top: 10%;
        }
        .message input {
            width: 83%;
            margin: 0 4%;
        }
        .content form input:not(:nth-child(6)) {
            border: 0;
            margin-bottom: 8%;
        }
        .message .icons b{
            top: 19.5%;
            left: 11%;
        }
        .message .icons b:nth-child(2){
            top: 47%;
            left: 10%;
        }
        .message .icons b:nth-child(3){
            top: 76.5%;
        }
    </style>
</head>
<body>
<div id="reg"></div>
<div class="reg_bg">
    <div class="register">
        <div class="header">忘记密码
            <div class="header_left" onclick="window.history.go(-1)"><img src="../images/return.png"></div>
        </div>
        <div class="content">
            <form id="forgpas">
                <div class="message">
                    <input type="tel" name="P_phone" placeholder="请输入手机号" pattern="[0-9A-Za-z]{6,25}" required/>
                    <input type="password" name="P_pas" placeholder="请输入新密码" pattern="[0-9A-Za-z]{6,25}" required/>
                    <input type="password" name="P_pass" placeholder="请再次输入密码" pattern="[0-9A-Za-z]{6,25}" required/>
                    <div class="icons">
                        <b><img src="../images/zc-3.jpg" alt=""/></b>
                        <b><img src="../images/zc-3.jpg" alt=""/></b>
                        <b><img src="../images/zc-3.jpg" alt=""/></b>
                    </div>
                </div>
                <input type="button" class="submit"  id="for_btn" value="确认">
            </form>
        </div>
    </div>
</div>
</body>
<script>
    //忘记密码
//    $("#for_btn").click(function(){
//        var userData = $('#forgpas').serialize();
//        alert(userData);
//        $.ajax({
//            type: 'POST',
//            url: '../bin/login_php/uptPas.php',
//            data:userData,
//            success: function(txt, msg, xhr){
//                if(txt=="忘记密码修改成功！"){  //
//                    layer.msg(txt);
//                    window.open('login.html','_parent')
//                }else{ //登录失败
//                    layer.msg(txt);
//                }
//            }
//        });
//    });
</script>

</html>